<?php 
	global $template;
	$colorset = ya_options()->getCpanelValue('scheme');
	$logo_image = ya_options() -> getCpanelValue( 'sitelogo' );
?>
<header id="header" role="banner">
    <?php if (is_active_sidebar_YA('top')) {?>
    <div id="sidebar-top" class="top">
            <div class="container">
                    <?php dynamic_sidebar('top'); ?>
            </div>
    </div>
    <?php }?>
    <div id="header-menu" class="header">
		<div class="header-content container">
			<div class="ya-logo pull-left">
				<a  href="<?php echo site_url() ?>">
					<?php
						if( $logo_image ){ ?>
							<img src="<?php echo $logo_image ?>" alt="<?php bloginfo('name'); ?>">
						<?php 
						}else{
							if ($colorset){$logo = get_template_directory_uri().'/assets/img/logo-'.$colorset.'.png';}
							else $logo = get_template_directory_uri().'/assets/img/logo-default.png';
							?>
								<img src="<?php echo $logo ?>" alt="<?php bloginfo('name'); ?>">
						<?php } ?>
				</a>
			</div>
			<?php if ( has_nav_menu('primary_menu') ): ?>
			<!-- Primary navbar -->
			<nav id="access" class="primary-menu" role="navigation">
				<div <?php ya_navbar_class(); ?>>
					<div class="navbar-inner">						
						<div id="menu-header" class="menu-header col-md-9 col-md-offset-3">
							<?php wp_nav_menu(array('theme_location' => 'primary_menu', 'menu_class' => 'nav')); ?>
						</div>						
					</div>
				</div>
			</nav>
			<!-- /Primary navbar -->
			<?php endif; ?>
		</div>	
	</div>
	<?php if ( is_active_sidebar_YA('banner') ): ?>
	<div class="banner" id="banner">
		<?php dynamic_sidebar('banner'); ?>
	</div>
	<?php endif; ?>

</header>